package com.ltt.mapper;

import com.ltt.dao.pojo.CommentOne;
import com.ltt.dao.pojo.CommentTwo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author ‘李天泰’
 * @version 1.0
 * @description: TODO
 * @date 2023/5/1 21:34
 */
@Mapper
public interface CommentMapper {
    List<CommentOne> getCommentOneById(int blog_id);

    List<CommentTwo> getCommentTwoById(String parent_id);

    void insertCommentOne(CommentOne commentOne);

    void insertCommentTwo(CommentTwo commentTwo);

    void updateCommentTwo(String id);

    int getBlogIdByCommentId(String id);
}
